﻿<!DOCTYPE html>
<html>
<head>
   <title>Creating a Project with VI-DriveSim and SimWB</title>
   <meta name="generator" content="Help & Manual">
   <meta name="keywords" content="">
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link type="text/css" href="default.css" rel="stylesheet">
   <link type="text/css" href="custom.css" rel="stylesheet">
   <script type="text/javascript" src="nsh.js"></script>
   
<!-- non-scrolling headers for CHM and browser-based help, local styles-->
<style TYPE="text/css" media="screen"> 
   <!-- 
   body {    
      margin:0; 
      padding:0; 
      overflow: auto; 
      background: #edede9; 
   } 
   #idheader { 
      width:100%; 
      height:auto; 
      padding: 0; 
      margin: 0;     
} 
    #idheaderbg  {
    background: #E40A00; 
}
#idheadernowrap  {
    white-space:nowrap; 
}
    ul {list-style-type: lower-roman}
   -->
   </style>
   
<style TYPE="text/css" MEDIA="print">
<!--
/* Hide navigation links and add space between header
     and text in the printed version. Not valid for eBooks. */
#idnav { display:none;	 }
.topichead { padding: 5px 5px 20px 5px; }
-->
</style>   
   <script type="text/javascript" src="jquery.js"></script>
   <script type="text/javascript" src="helpman_settings.js"></script>
   <script type="text/javascript" src="helpman_topicinit.js"></script>

   <script type="text/javascript">
     HMSyncTOC("index.html", "drvsim_inst_creating-a-project-with-prod_n.htm");
   </script>
   <script type="text/javascript" src="highlight.js"></script>
   <script type="text/javascript">
     $(document).ready(function(){highlight();});
   </script>
</head>
<body>

<!--ZOOMSTOP-->

<div id="idheader" >
<div id="idheaderbg">
<table width="100%" border="0" cellspacing="0" cellpadding="0" 
       style="margin: 0px; color: #D7D7D7;">

  <tr valign="middle">
    <td align="left" valign="middle" class="topichead">
    <!--<div id="idheadernowrap">-->
    <p class="crumbs" id="idnav"><b>Navigation:</b>&nbsp;
   
   VI-DriveSim 19.2 on Linux &gt; VI-DriveSim 19.2 Configuration &gt; <a href="drivesim_simulation_workbench_configura.htm">Simulation WorkBench configuration</a>&nbsp;&gt;</p>
      <h1 class="p_Heading1" style="page-break-after: avoid;"><span class="f_Heading1">Creating a Project with VI-DriveSim and SimWB</span></h1>

    <!--</div>-->
    </td>
    <td align="right" width="180" valign="middle" class="topichead" id="idnav">
    <div id="idheadernowrap">
    <a href="javascript: print();"
    		onmouseover="document.images.prntr.src='print_a.png'" 
        onmouseout="document.images.prntr.src='print_n.png'"
        ><img name="prntr" border="0" alt="Print this Topic" title="Print this Topic" src="print_n.png"
        ></a>&nbsp;&nbsp;
     <a href="drvsim_int_hw_map_configuration_file.htm"
        onmouseover="document.images.prev.src='back_a.png'" 
        onmouseout="document.images.prev.src='back_n.png'"
        ><img name=prev src="back_n.png" border=0 alt="Previous page"
        ></a><a href="drivesim_simulation_workbench_configura.htm"
        onmouseover="document.images.main.src='top_a.png'" 
        onmouseout="document.images.main.src='top_n.png'"><img name=main src="top_n.png" border=0 alt="Return to chapter overview"
        ></a><a href="drvsim_vidrivesim_rtdb_reference.htm"
        onmouseover="document.images.next.src='next_a.png'" 
        onmouseout="document.images.next.src='next_n.png'"><img name=next src="next_n.png" border=0 alt="Next page"
        ></a>
    </div>
    </td>
  </tr>
</table>
</div>

<!-- The following code displays Expand All/Collapse All links  below the header in topics containing toggles -->
  

</div>  



<div id="idcontent"><div id="innerdiv"> 
<!--ZOOMRESTART-->
<p class="p_Normal">On SimulationWorkBench it is possible to have different projects, in order to better organize the Simulator environment. Having different projects in fact, gives the possibility to separate different cases, as different Simulink Models or different RTDBs.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">As an example, a Simulink Model is compiled on a defined RTDB; if a Simulink Model is strictly related to a certain vehicle (or a certain customer) and it is not needed for other vehicles, it can be useful to create a custom project for that particular vehicle (or customer). In this way, other vehicles will not use a RTDB &quot;corrupted&quot; with the channels coming from that Simulink Model.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">At the same time, it is possible that the same Simulink Model is used by more than one vehicle, but different parameters are needed for the two vehicles. Again, creating two different projects can be useful, since the Simulink Model will be compiled on two different projects. The parameters can now be set differently from one project to the other, instead of having the need of modifying them every time that a vehicle change is done.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">If no projects are created, it is possible to work under the <span style="font-style: italic;">Default Project.</span></p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">To create a new project, please follow these steps:</p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span>On the left side of SimWB, right click on <span style="font-style: italic;">Projects </span>and press <span style="font-style: italic;">Create Project</span>; type then the name of your new project and press <span style="font-style: italic;">Create</span>. The <span style="font-style: italic;">Make Active</span> flag is just to automatically activate the project when created. If not flagged, to enter into the project it is necessary to double click on it on the tree view on the left.</p><p class="p_Normal">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_SimWB_NewPrj" width="634" height="202" style="margin:0px auto 0px auto;width:634px;height:202px;border:none" src="drvsim_simwb_newprj.png"/></p>
<p class="p_Normal">&nbsp;</p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span>Now open the VI-DriveSim GUI; in configuration tab select the just created project from the dropdown menu and press &quot;Deploy VI-DriveSim&quot;</p><p class="p_Normal">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_create_Test_01" width="634" height="211" style="margin:0px auto 0px auto;width:634px;height:211px;border:none" src="drvsim_create_test_01.png"/></p>
<p class="p_Normal" style="text-align: left;">&nbsp;</p>
<p class="p_Normal">By doing this, all the executable files needed for the simulation will be stored in the path <span style="font-weight: bold;">/home/ccursim/projects/UserExecs</span>. If this step is done for a new project, instead of the default one, these files will be in the path <span style="font-weight: bold;">/home/ccursim/projects/__YourProject/UserExecs</span>. In SimworkBench you can see these executables in the tree on the left side, in <span style="font-style: italic;">P</span><span style="font-style: italic;">rojects/default/Models/User Models. </span></p>
<p class="p_Normal" style="margin: 0px 0px 0px 37px;">&nbsp;</p>
<p class="p_Normal" style="text-align: center; margin: 0px 0px 0px 37px;"><span style="font-weight: bold; text-decoration: underline;">NOTE. This step must be done only the very first time that a test is created in a new project.</span></p>

<!--ZOOMSTOP-->
</div></div>
<script type="text/javascript"> 
<!-- 
var lastSlashPos = document.URL.lastIndexOf("/") >
document.URL.lastIndexOf("\\") ? document.URL.lastIndexOf("/") :
document.URL.lastIndexOf("\\");
if( document.URL.substring( lastSlashPos + 1, lastSlashPos + 4
).toLowerCase() != "~hh" )
{
    nsrInit();
}
--> 
</script> 
</body>
</html>
